﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HuaProject.Web.Admin
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (HttpContext.Current.User.Identity.IsAuthenticated == false)
                {
                    Response.Write("<script>parent.location='/admin';</script>");
                    Response.End();
                    //ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('Site')", true);
                }
            }
        }
    }
}